    $(function() {
        nissinHeight();
    })

    var winHeight = $(window).outerHeight();

    function nissinHeight() {
        var wrap = $('.teamplate-nissin');
        var hd = wrap.find('.weather')
        var box = wrap.find('.nissin-wrap').find('.list').find('.box');
        console.log(winHeight);
        box.each((item, index) => {
            box.height(winHeight - 43 - hd.outerHeight() - 100)
        })
    }

    //设置Json类型的本地缓存
    function setItemMethod(key, data) {
        window.localStorage.setItem(key, JSON.stringify(data));
    }

    //读取Json类型的本地缓存
    function getItemMethod(key) {
        return JSON.parse(window.localStorage.getItem(key));
    }
    //获取Cookie
    function getCookie(name) {
        var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
        if (arr = document.cookie.match(reg))
            return unescape(arr[2]);
        else
            return null;
    }
    //设置Cookie
    function setCookie(name, value) {
        var Days = 30;
        var exp = new Date();
        exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
        document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString();
    }
    //删除Cookie
    function delCookie(name) {
        var exp = new Date();
        exp.setTime(exp.getTime() - 1);
        var cval = getCookie(name);
        if (cval != null)
            document.cookie = name + "=" + cval + ";expires=" + exp.toGMTString();
    }
    //请求数据showLoading()
    function showLoading() {
        $("body").append("<div id='loading_cen' class='loading_cen'></div>");
        var e = $("#loading_cen"),
            a = ($(window).height() - e.height()) / 2,
            t = ($(window).width() - e.width()) / 2;
        e.css("top", a), e.css("position", "fixed"), e.css("left", t), e.css("z-index", 10001), e.show()
    }
    //请求成功closeLoading()
    function closeLoading() {
        $("#loading_cen").is(".loading_cen") && ($("#loading_cen").remove(), $("#lock_select_bg").remove())
    }
    //导出excel表格
    function exportExcelForm(obj) {
        var timer, flag = 0;
        triggerDelay = 1000;
        url = obj.url,
            showLoading();
        timer = setTimeout(function() {
            function checkToken() {
                closeLoading();
                flag = 0;
            }
            if (!flag) {
                flag = 1;
                $('<iframe />').attr('src', url).attr('id', 'iframe_download_report').hide().appendTo('body');
                var downloadTimer = setTimeout(checkToken, 1000);
            }

        }, triggerDelay);
    }

    //药监系统表格高度
    function drugH() {
        let winHeight = $(window).innerHeight();
        let nav = $('.navbar').innerHeight();
        let hQuery = $('.h-query').innerHeight();
        let operation = $('.b-operation').innerHeight();

        $('.list-table').children('.table-wrap').css('height', winHeight - nav - hQuery - operation - 70);
    }